<div class="query-wrapper">
  <div class="form-inline" #myQuery="ngForm" ngForm >
    <div class="form-group">
      <label>数据类型：</label>
      <select class="form-control" style="border-radius: 4px;" [(ngModel)]="type" name="datatype">
          <option *ngFor="let select of selects" [value]="select.value">
              {{select.name}}
          </option>
      </select>
    </div>
    <app-time-type [begindate]="begindate"  (emitDate)="getDate($event)" [hasEnd]="false"></app-time-type>
    <div class="form-group">
      <label>选择次数：</label>
      <select class="form-control" style="border-radius: 4px;" [(ngModel)]="time" name="time">
          <option *ngFor="let select of timeSelects" [value]="select.value">
              {{select.name}}
          </option>
      </select>
    </div>
    <div class="form-group">
      <button class="btn btn-primary btn-sm"  (click)="condition(myQuery.value)"><i class="fa fa-search" aria-hidden="true"></i>&nbsp;&nbsp;查询</button>
    </div>
  </div>
</div>
<div class="container">
  <div class="row">
    <div class="col-sm-12">
      <app-no-data *ngIf='!isShow'></app-no-data>
      <echarts-ng2 *ngIf='isShow' [option]="option" [theme]="'macarons'"></echarts-ng2>
    </div>
  </div>
</div>